<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:panelGrid width="100%">
		<h:panelGrid id="cgfNombreContainer" width="100%" columns="2"
			columnClasses="col16, ">
			<h:panelGrid columns="2">
				<h:outputLabel
					value="${msg['bienes.infoEspecifica.cgf.fields.nombre']}" />
				<h:outputLabel value="*" />
			</h:panelGrid>
			<h:panelGrid>
				<h:inputText id="cgfNombreInput" styleClass="long trimInputField"
					value="#{cgfManager.cgf.nombre}" required="true"
					requiredMessage="${msg['general.requerido']}"
					validatorMessage="${msg['general.requerido']}"
					disabled="#{disableTableEditCommands}" />
				<h:message for="cgfNombreInput" errorClass="validationErrorMessage"
					showSummary="false" />
			</h:panelGrid>
		</h:panelGrid>
		<h:panelGrid id="cgfOtherDataContainer" columns="6"
			columnClasses="col16, , col16, , col16, " width="100%">
			<h:panelGrid columns="2">
				<h:outputLabel
					value="${msg['bienes.infoEspecifica.cgf.fields.numPersonas']}"
					for="cgfNumPersonas" />
				<h:outputLabel value="*" />
			</h:panelGrid>
			<h:panelGrid>
				<h:inputText id="cgfNumPersonas" maxlength="3"
					value="#{cgfManager.cgf.numPersonas}"
					disabled="#{disableTableEditCommands}"
					validatorMessage="${msg['general.requerido']}"
					styleClass="short shorterInput numeric trimInputField" />
				<h:message for="cgfNumPersonas" errorClass="validationErrorMessage"
					showSummary="false" />
			</h:panelGrid>
			<h:panelGrid columns="2">
				<h:outputLabel
					value="${msg['bienes.infoEspecifica.cgf.fields.numMenores']}"
					for="cgfNumHijos" />
				<h:outputLabel value="*" />
			</h:panelGrid>
			<h:panelGrid>
				<h:inputText id="cgfNumHijos" maxlength="3"
					value="#{cgfManager.cgf.numMenores}"
					disabled="#{disableTableEditCommands}"
					validatorMessage="${msg['general.requerido']}"
					styleClass="short shorterInput numeric trimInputField">
				</h:inputText>
				<h:message for="cgfNumHijos" errorClass="validationErrorMessage"
					showSummary="false" />
			</h:panelGrid>

			<ui:include src="/general/personaField.xhtml">
				<ui:param name="personaNombre"
					value="#{cgfManager.cgf.nombrePersonaContacto}" />
				<ui:param name="idPopupPersona" value="popupCgf" />
				<ui:param name="requiredField" value="true" />
				<ui:param name="fieldLabel"
					value="${msg['bienes.infoEspecifica.cgf.fields.contacto']}" />
				<ui:param name="inputTextClass" value="shortPersona" />
				<ui:param name="invokerBean" value="#{cgfManager}" />
				<ui:param name="prepId" value="cgf" />
				<ui:param name="disabledField" value="#{disableTableEditCommands}" />
				<ui:param name="onOpenRenderComponents" value=":popUpCgfComponent" />
			</ui:include>
		</h:panelGrid>

		<p />
		<p />

		<h:panelGrid width="100%" columns="2" id="cgfPanelTelefono"
			columnClasses="col16, ">
			<ui:remove>rendered="#{cgfManager.cgf.telPersonaContacto ne null}"</ui:remove>
			<h:outputLabel
				value="${msg['bienes.infoEspecifica.cgf.fields.telefono']}" />
			<h:inputText value="#{cgfManager.cgf.telPersonaContacto}"
				styleClass="long" disabled="true" />
		</h:panelGrid>
	</h:panelGrid>
</ui:composition>
